
init();

function init() {
    queryProgressList();
}

function queryProgressList() {
    $.ajax({
        url :   "http://localhost:8080/userCore/schedule/getallscheduleinfo",
        type:   "post",
        data:JSON.stringify({projectId:1}),
        contentType:"application/json;",
        success:function(data) {
            var progressHtml = "";
            var list = data.data;
            for(var i=0; i<list.length; i++){
                var detail = list[i];
                progressHtml = progressHtml + '<ul class="list_ul08">'
                    +'<li>'
                    +detail.scheduleName
                    +'</li>'
                    +'<li>'
                    +new Date(detail.oprDate).toLocaleDateString()
                    +'<img src="img/symbol.png" style="vertical-align:middle" /></li>'
                    +'</ul>';
            }
            $("#progressList").html(progressHtml)
        }
    });

}
